<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>地理坐标在线转换工具</title>
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=t6LwY5oQA0yiesbKtvvGLpGiVmbWlpar"></script>


  <link rel="stylesheet" href="https://api.map.baidu.com/library/SearchInfoWindow/1.4/src/SearchInfoWindow_min.css" />
  <script>
    // 基准大小
    const baseSize = 192
    // 设置 rem 函数
    function setRem() {
      const scale = document.documentElement.clientWidth / 1920
      // 设置页面根节点字体大小
      // eslint-disable-next-line
      document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px'

      if (Number(document.documentElement.style.fontSize.slice(0, -2)) <= 130) {
        document.documentElement.style.fontSize = '130px';
      }
    }
    // 初始化
    setRem()
    // 改变窗口大小时重新设置 rem
    window.onresize = function () {
      setRem()
    }
  </script>
</head>

<body>
  <noscript>
    <strong>
      We're sorry but vue-demo doesn't work properly without JavaScript enabled. Please enable it to continue.
    </strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>
